package com.ali.ttt.netty.cluster.config;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author : yuxl
 * @create 2024/7/1 10:45 AM
 */
@Getter
@Setter
@Component
@ConfigurationProperties(
        prefix = "netty.cluster"
)
public class NettyClusterProperties {

    @ApiModelProperty(value = "是否开启")
    private boolean enable;

    @ApiModelProperty(value = "ip")
    private String host;

    @ApiModelProperty(value = "端口")
    private int prod;

    @ApiModelProperty(value = "key")
    private String key;

}
